package cate.common.table.activity.foodhunter.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class FoodHunterRow extends ERow {
    @NoteField("活动配置ID")
    public int configId;
    @NoteField("天数")
    public int day;
    @NoteField("任务分组")
    public int group;
    @NoteField("每日充值金额")
    public long dailyPay;
    @NoteField("每日充值奖励")
    public String payReward;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID");
        this.configId = xrw.getInteger("活动配置ID");
        this.day = xrw.getInteger("天数");
        this.group = xrw.getInteger("任务分组");
        this.dailyPay = xrw.getLong("每日充值金额");
        this.payReward = xrw.getString("每日充值奖励");
    }

    @Override
    public void decode() {
        //元换算成分
        this.dailyPay *= 100;
    }
}
